/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package strategies;

import common.ParamStorage;
import html.XHtmlFormatter;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Alejandro
 */
public class WebContext{
    private short uid = 0;
    private XHtmlFormatter provider;
    private ParamStorage storage;
    private String redirect = "";
    
    public WebContext(XHtmlFormatter provider, ParamStorage storage) {
        this.provider = provider;
        this.storage = storage;
    }
    
    public XHtmlFormatter getWebFormatter() {
        return provider;
    }
    
    public ParamStorage getParamStorage() {
        return storage;
    }

    public short getUid() {
        return uid;
    }
    
    public void setUid(short uid) {
        this.uid = uid;
    }

    public void setRedirect(String redirect) {
        this.redirect = redirect;
    }

    public String getRedirect() {
        return redirect;
    }

    public boolean isRedirect() {
        return !redirect.isEmpty();
    }
}
